package Data::Conveyor::Ticket::Payload::BusinessObject;

# $Id: BusinessObject.pm 13653 2007-10-22 09:11:20Z gr $

use warnings;
use strict;


our $VERSION = '0.02';


use base 'Data::Conveyor::Ticket::Payload::Item';


__PACKAGE__->mk_framework_object_accessors(
    payload_instruction_container => 'instruction_container',
    value_command                 => 'command',
);


sub check {
    my ($self, $ticket) = @_;
    $self->SUPER::check($ticket);
    $self->instruction_container->check($self->exception_container, $ticket);
}


sub apply_instruction_container {
    my $self = shift;
    $self->SUPER::apply_instruction_container(@_);
    $self->data->apply_instruction_container(
        $self->instruction_container, $self->exception_container);
}


sub prepare_comparable {
    my $self = shift;
    $self->instruction_container;
}


1;


__END__

{% USE p = PodGenerated %}

=head1 NAME

{% p.package %} - stage-based conveyor-belt-like ticket handling system

=head1 SYNOPSIS

    {% p.package %}->new;

=head1 DESCRIPTION

None yet. This is an early release; fully functional, but undocumented. The
next release will have more documentation.

=head1 METHODS

=over 4

{% p.write_methods %}

=back

{% p.write_inheritance %}

{% PROCESS standard_pod %}

=cut

